package com.example.decoratorParttern.decorator;

import com.example.decoratorParttern.model.Shape;

/**
 * 模型抽象装饰器
 * sun 2017-12-15
 */
public abstract class ShapeDecorator implements Shape{

    protected Shape decoratorShape;

    public ShapeDecorator(Shape decoratorShape) {
        this.decoratorShape = decoratorShape;
    }

    public void draw(){
        decoratorShape.draw();
    }
}
